package interpreter.practice_02;

import java.util.HashMap;

/**
 * @author yi qiang
 * @date 2021/6/20 21:59
 */
public class SubExpression extends SymbolExpression{

    public SubExpression(AbstractExpression left,AbstractExpression right){
        super(left,right);
    }

    @Override
    public int interpreter(HashMap<String,Integer> val) {
        return super.left.interpreter(val)-super.right.interpreter(val);
    }
}
